Path: blob/master/Part 3 - Classification/Kernel SVM/[R] Kernel SVM.ipynb
1009 views
Kernel: R
Kernel SVM
Data preprocessing
In [1]:
In [2]:
In [3]:
In [4]:
Fitting classifier to the Training set
In [7]:
Predicting the Test set results
In [8]:
In [9]:
Out[9]:
In [10]:
Out[10]:
Making the Confusion Matrix
In [11]:
Out[11]:
y_pred
0 1
0 45 6
1 4 25
classifier made 45 + 25 = 75 correct prediction and 6 + 4 = 10 incorect predictions.
Visualising the Training set results
In [12]:
Out[12]:
Visualising the Test set results
In [13]:
Out[13]:
Looks like it is much better the Linear kernel.